package gat.dto.res.backgroundUser;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author sxq
 * @date 2022/2/22$
 * @desc
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder(toBuilder = true)
public class BackgroundUserInfo implements Serializable {

    /**
     * int8
     */
    @ApiModelProperty(value = "")
    @JsonProperty(index = 0)
    private Long id;
    /**
     * 手机号 varchar
     */
    @ApiModelProperty(value = "手机号")
    @JsonProperty(index = 10)
    private String phone;

    /**
     * 用户名 varchar
     */
    @ApiModelProperty(value = "用户名")
    @JsonProperty(index = 30)
    private String username;


    /**
     * 昵称 varchar
     */
    @ApiModelProperty(value = "昵称")
    @JsonProperty(index = 60)
    private String nickname;

    /**
     * 真实姓名 varchar
     */
    @ApiModelProperty(value = "真实姓名")
    @JsonProperty(index = 90)
    private String realName;


    /**
     * 创建时间 timestamp
     */
    @ApiModelProperty(value = "创建时间")
    @JsonProperty(index = 110)
    private LocalDateTime createTime;


    /**
     * 头像 varchar
     */
    @ApiModelProperty(value = "头像")
    @JsonProperty(index = 190)
    private String headPic;

    /**
     * 状态 int2
     */
    @ApiModelProperty(value = "状态")
    @JsonProperty(index = 230)
    private Integer status;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称")
    @JsonProperty(index = 240)
    private String roleNames;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id列表")
    @JsonProperty(index = 240)
    private String roleIds;

    /**
     * token
     */
    private String token;


    private Long tenantId;


}
